import {
  Entity,
  PrimaryGeneratedColumn,
  Column,
  CreateDateColumn,
} from 'typeorm';

@Entity({ name: 'captcha' })
export class Captcha {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column({ type: 'character', length: 4 })
  text: string;

  @CreateDateColumn()
  createdAt: Date;
}
